<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="description" content="亿速云领先云计算、云安全提供商，有云服务器云主机(代替VPS)、高防服务器、CDN、DNS等产品，已在国内、香港、韩国、美国、日本、新加坡、欧洲等进行全球布点。">
    <meta name="keywords" content="云服务器,高防服务器,香港服务器,美国服务器">
    <meta itemprop="name" content="亿速云">
    <meta itemprop="description" name="description" content="领先的全球云计算和云安全提供商！">
    <meta itemprop="image" content="https://cache.yisu.com/www/images/yisu_logo.png">
    <title>个人注册</title>
    <link rel="shortcut icon" href="https://cache.yisu.com/www/images/favicon.ico">
    <link rel="stylesheet" href="../files/yisu-footer.css">
    <link href="../css/style.css" rel="stylesheet">
    <link href="../css/page/backend/login.css" rel="stylesheet">
    <style type="text/css">
        .rightBar{
            display: none;
        }
    </style>
</head>
<body>
<div id="hd">
    <div class="logo main-content">
        <h1><a href="{:U('home/login/index')}" title="云平台">账号登录</a></h1>
        <ul class="head-link">
            <li><a href="{:U('home/index/index')}">云平台首页</a></li>
            <li><a href="{:U('home/register/personage')}" style="color: #14a9ce">个人注册</a></li>
            <li><a href="{:U('home/register/company')}">企业注册</a></li>
        </ul>
    </div>
</div>

<div id="bd" class="login-bd" style="height: 650px;">
    <div class="main-content">
        <div class="input-box">
            <div class="input-hd"><h2>推广会员注册</h2></div>

            <div class="input-area">
                <form action="{:U('home/register/promoteUser')}" method="post">
                    <input type="hidden" name="agent_id" value="{$agent_id}"/>
                    <div class="input-item">
                        <span><span style="color: red">* </span>会员用户名：</span>
                        <input type="text" placeholder="请输入会员用户名" name="username" style="float: right;" id="username">
                    </div><br>

                    <div class="input-item">
                        <span><span style="color: red">* </span>联系人(真实姓名)：</span>
                        <input type="text" placeholder="请输入联系人(真实姓名)" name="truename" style="float: right;" id="truename">
                    </div><br>

                    <div class="input-item">
                        <span><span style="color: red">* </span>手机号码：</span>
                        <input type="text" placeholder="请输入手机号码" name="phone" style="float: right;">
                    </div><br>

                    <div class="input-item">
                        <span><span style="color: red">* </span>电子邮件：</span>
                        <input type="text" placeholder="请输入电子邮件" name="email" style="float: right;">
                    </div><br>

                    <div class="input-item">
                        <span><span style="color: red">* </span>用户密码：</span>
                        <input type="password" placeholder="请输入用户密码" name="password" style="float: right;">
                    </div><br>

                    <div class="input-item">
                        <span><span style="color: red">* </span>确认密码：</span>
                        <input type="password" placeholder="请确认密码" name="repassword"  style="float: right;">
                    </div><br>
                    <input type="submit" class="login-btn" value="注册">
                </form>
            </div>
            <p class="reg" ><a href="{:U('home/register/company')}" style="color:#808080">企业注册</a> <a href="{:U('home/login/index')}">立即登录</a></p>
        </div>
    </div>
</div>
<include file="public:foot"/>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript">
    $(".login-btn").click(function(){
        var username = $("#username").val();
        if(!(/^[a-zA-Z0-9_]{3,20}$/.test(username))){
            alert("会员用户名为3-20为字母、数字、下划线组成");
            return false;
        }
        var truename = $("#truename").val();
        if(!(/^[\u4e00-\u9fa5]+$/.test(truename))){
            alert("真实姓名格式错误,必须含有汉字");
            return false;
        }
    })

</script>
</body>
</html>